package org.easymis.crm.modules.biplatform.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import org.easymis.crm.modules.biplatform.entitys.mybatis.dto.Card;
import org.easymis.crm.modules.biplatform.entitys.mybatis.mapper.CardMapper;
import org.easymis.crm.modules.biplatform.service.CardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class CardServiceImpl implements CardService {
	@Autowired
	CardMapper mapper;

	@Override
	public List<Card> getList(HashMap<String, Object> params) {
		// TODO Auto-generated method stub
		return mapper.getList(params);
	}

	@Override
	public void save(Card bean) {
		// TODO Auto-generated method stub
		bean.setCardId(UUID.randomUUID().toString());
		mapper.save(bean);
	}

	@Override
	public void saveBatch(List<Card> beans) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void update(Card bean) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(String CardId) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void removeBatch(List<String> list) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void restoreBatch(List<String> list) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void deleteBatch(List<String> list) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Card findById(String CardId) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Card> findByIds(List<String> list) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Map generateJson(String datasourceType, String datasourceId, String formData, Boolean csv, Boolean query,
			Boolean force) {
		//
		Map map = new HashMap();
		if(csv) {
			return null;
		}
		if(query) {
			return null;
			
		}
		map.put("cache_key", "");
		map.put("cache_dttm", "");
		map.put("cache_timeout", "");
		map.put("df", "");
		map.put("error", "");
		map.put("form_data", "");
		map.put("is_cached", "");
		map.put("query", "");
		map.put("status", "");
		map.put("stacktrace", "");
		map.put("rowcount", "");
		
		return map;
	}
}
